<?php
defined("__HVE") or die("<tt>HansVon Engine</tt>");
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="cache-control" content="no-cache" />
<title><?php echo $_I->M['iniciarsesion'].' - '.$GLOBALS['empresa']['nombre'] ?></title>
<style type="text/css">
#fondo{
	background: url(<?php echo $PIC.'login.png' ?>);
	position:absolute;
	width:447px;
	height:245px;
	color:#000;
	font:normal 14px Arial;
	text-align:right;
}
#fondo table,#fondo table tr td input{
	font:bold 20px Arial, Helvetica, sans-serif;
}
#fondo table tr td{
	padding-right:10px;
	color:#FFF;
}
#fondo table{
	margin-top:100px;
}
.movil a{
	color:#666;
	font:normal 10px "Lucida Console", Monaco, monospace;
}
</style>
</head>
<body>
<form action="" method="post">
<div id="fondo">
 <table width="447">
  <tr>
    <td style="width:120px" align="right"><?php echo $_I->M['usuario'] ?> : </td>
    <td align="left"><input name="usuario" type="text" /></td>
  </tr>
  <tr>
    <td style="width:120px; height:40px" align="right"><?php echo $_I->M['contrasena'] ?> : </td>
    <td align="left"><input name="clave" type="password" /></td>
  </tr>
  <tr>
  <td>&nbsp;</td>
    <td align="left"><input type="submit" value="<?php echo $_I->M['entrar'] ?>" /></td>
  </tr>
</table>
</div>
</form>
<script type="application/javascript">
function ajusta(objID){
	var obj = document.getElementById(objID);
	obj.style.left = ((screen.availWidth/2)-(447/2))+"px";
	obj.style.top = ((screen.availHeight/2)-(245))+"px";
}
ajusta('fondo');
<? echo ((isset($msj_error))?"alert(\"$msj_error\");":'') ?>
var UID = "<?php print('mua_'.sha1(uniqid())); ?>";
</script>
</body>
</html>